home *** CD-ROM | disk | FTP | other *** search
- > In answering you question, I would like to see a function which allows
- > the taking of noise levels from each of the 2 channels from a stereo
- > sampler. This info would only need to be 2 numbers between 0 and 9, ie
- > the volume of the noise being monitored at that point on each channel.
- >
- > All you need have is a function call like eg :-
- >
- > - var_name = ch_level_left
- >
- > and var_name returned with a value between 0 and 9.
- >
- > This would allow you to trigger sequences by real world noise events.
- > eg burglar alarm - any sustained level of noise above the ave sound level
- > (breaking windows, footsteps etc) can trigger an event ie an alarm.
- >
- > Or you could use it to provide trippy visuals triggered in time to the
- > beat of some music.
- >
- > If this is possible, I will be one of the fisrt to buy it !!!
-
- Try something like...
-
- ' PAL overscan screen
- Screen Open 0,352,290,2,Lowres
- Screen Display 0,,30,,
- Hide On
- Cls 0
- Circle 176,145,100 : Paint 176,145
- A=$BFE101 : AA=$BFE103
- THRESH=2
- '
- Amos To Front
- Do
- S=Abs(Peek(A)-128)
- SS=Abs(Peek(AA)-128)
- If SS>THRESH
- Colour 0,Rnd(4095) : Wait Vbl
- Fade 1 : Wait 5
- End If
- If S>THRESH
- Colour 1,Rnd(4095) : Wait Vbl
- Fade 1 : Wait 5
- End If
- Loop
-
-
-
- --
- Dominic Ramsey
-
-